Skip to content

Conversation

@mre
Copy link
Contributor

@mre mre commented May 19, 2025

I think it is easier to understand what's going on in the From logic for ProcessItem if the tuple fields have named values.
Alternatively, we could consider to convert this to a struct. I personally would prefer that, but it's definitely a matter of preference and I don't have a strong opinion on it. ;)

 I think it is easier to understand what's going on in the  From logic for ProcessItem if the tuple fields have named values.
 Alternatively, we could consider to convert this to a struct. I personally would prefer that, but it's definitely a matter of preference and I don't have a strong opinion on it. ;)
@kkharji
Copy link
Owner

kkharji commented May 20, 2025

Indeed you're right a struct is much better for readability and later expansion (although no idea now how it can be expanded)

@mre
Copy link
Contributor Author

mre commented May 20, 2025

I thought about this for a little longer and I actually think it's okay to keep it as a tuple for now. Together with the change in this pull request it's now relatively readable and I also have no idea how we might expand it in the future. We can defer that decision. So I would suggest to merge it as is for now.

@kkharji kkharji merged commit 4d80bb6 into kkharji:master May 20, 2025
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants